﻿using System.Web;
using SDCloudSolution.SDCloud.Web.Infrastructure.Interfaces;
using SDCloudSolution.SDCloud.Web.Utils;

namespace SDCloudSolution.SDCloud.Web.Infrastructure
{
    public class UserIdentityProvider : IUserIdentityProvider
    {
        private UserIdentity _identity;

        public UserIdentity Current
        {
            get { return _identity ?? UserIdentityHelper.ParseUserIdentity(HttpContext.Current.User); }
        }
    }
}